build: Make -Werror=int-conversion fatal
authorColin Walters <walters@verbum.org>
Thu, 4 Aug 2016 20:58:07 +0000 (16:58 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 8 Aug 2016 11:13:06 +0000 (11:13 +0000)
This should hopefully avoid me accidentally passing NULL for an `int`
file descriptor in the future.

Closes: #431
Approved by: giuseppe

configure.ac

index 18ab7b048a793cd4dcd82b07b0d3f4a434ffc61c..4831bcc4adaa1310bb6f2bed43e1004041ed05aa 100644 (file)
@@ -27,6 +27,7 @@ CC_CHECK_FLAGS_APPEND([WARN_CFLAGS], [CFLAGS], [\
         -Werror=missing-declarations \
         -Werror=return-type \
         -Werror=overflow \
+        -Werror=int-conversion \
        -Werror=missing-include-dirs -Werror=aggregate-return \
        -Werror=declaration-after-statement \
 ])